home *** CD-ROM | disk | FTP | other *** search
/ Utilities Professional 1-1500 / Utilities Professional 1-1500 (1994)(WPD)[!].iso / 12511500 / var1432.dms / var1432.adf / NDUK-V40.lha / V40 / include / libraries / nonvolatile.h < prev    next >
C/C++ Source or Header  |  1993-10-15  |  2KB  |  78 lines

  1. #ifndef LIBRARIES_NONVOLATILE_H
  2. #define LIBRARIES_NONVOLATILE_H
  3.  
  4. /*
  5. **    $VER: nonvolatile.h 40.8 (30.7.93)
  6. **    Includes Release 40.15
  7. **
  8. **    nonvolatile.library interface structures and defintions.
  9. **
  10. **    (C) Copyright 1992-1993 Commodore-Amiga, Inc.
  11. **    All Rights Reserved
  12. */
  13.  
  14. /*****************************************************************************/
  15.  
  16.  
  17. #ifndef EXEC_TYPES_H
  18. #include <exec/types.h>
  19. #endif
  20.  
  21. #ifndef EXEC_NODES_H
  22. #include <exec/nodes.h>
  23. #endif
  24.  
  25.  
  26. /*****************************************************************************/
  27.  
  28.  
  29. struct NVInfo
  30. {
  31.     ULONG nvi_MaxStorage;
  32.     ULONG nvi_FreeStorage;
  33. };
  34.  
  35.  
  36. /*****************************************************************************/
  37.  
  38.  
  39. struct NVEntry
  40. {
  41.     struct MinNode nve_Node;
  42.     STRPTR       nve_Name;
  43.     ULONG       nve_Size;
  44.     ULONG       nve_Protection;
  45. };
  46.  
  47. /* bit definitions for mask in SetNVProtection().  Also used for
  48.  * NVEntry.nve_Protection.
  49.  */
  50. #define NVEB_DELETE  0
  51. #define NVEB_APPNAME 31
  52.  
  53. #define NVEF_DELETE  (1<<NVEB_DELETE)
  54. #define NVEF_APPNAME (1<<NVEB_APPNAME)
  55.  
  56.  
  57. /*****************************************************************************/
  58.  
  59.  
  60. /* errors from StoreNV() */
  61. #define NVERR_BADNAME    1
  62. #define NVERR_WRITEPROT 2
  63. #define NVERR_FAIL    3
  64. #define NVERR_FATAL    4
  65.  
  66.  
  67. /*****************************************************************************/
  68.  
  69.  
  70. /* determine the size of data returned by this library */
  71. #define SizeNVData(DataPtr) ((((ULONG *) DataPtr)[-1]) - 4)
  72.  
  73.  
  74. /*****************************************************************************/
  75.  
  76.  
  77. #endif /* LIBRARIES_NONVOLATILE_H */
  78.